enableSaving [false, false];
setViewDistance 2000;
setTerrainGrid 25;
ace_sys_wounds_leftdam = 0.2;
ace_sys_wounds_no_medical_gear = false;
// Debug
onMapSingleClick "player setPos _pos";


//////////////////// SERVEUR ////////////////////////////////////////////////////////////

if (isServer) then {
execVM "serveur\serveur_init.sqf";
execVM "serveur\att_base.sqf";
};

////////////////////////////////////////////////////////////////////////////////////////
	
// Variables Globales
mission_start = true;
dure_cap = 0.5;
penalite = 0;

att_side = west;
def_side = east;


att_faction = switch (paramsArray select 0) do
    {
      case 0: {"US_Army"};
      case 1: {"IRIA"};
    }; 

def_faction = switch (paramsArray select 1) do
    {
      case 0: {"US_Army"};
      case 1: {"IRIA"};
    }; 





// att_faction = (paramsArray select 0);
// def_faction = "IRIA";
att_respawn_pos = [4091.85,9391.75,0.00147629];




att_lose = false;
def_lose = false;
ticket_att = 500;
ticket_def = 500;

//////////////////// Loading screen ////////////////////////////////////////////////////////

player enableSimulation false;
1 cutRsc ["lg_ui_ds", "BLACK", 0];
((uiNamespace getVariable "ui_ds") displayCtrl 201433) ctrlSetText "\lg_main\flag\att_flag.paa";
((uiNamespace getVariable "ui_ds") displayCtrl 201434) ctrlSetText "\lg_main\flag\def_flag.paa";
((uiNamespace getVariable "ui_ds") displayCtrl 201435) ctrlSetText format["\lg_main\flag\%1.paa", att_faction];
((uiNamespace getVariable "ui_ds") displayCtrl 201436) ctrlSetText format["\lg_main\flag\%1.paa", def_faction];
playSound "lg_s_ateam";

//////////////////// PLAYER /////////////////////////////////////////////////////////////

// if (isPlayer) then {
execVM "player\player_init.sqf";
// };

////////////////////////////////////////////////////////////////////////////////////////

